<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>颜色渐变</title>
		<style type="text/css">
			#d1{
				height: 400px;
				background: linear-gradient(to right,red,green,blue,brown);
			}
			#d2{
				height: 500px;
				width: 500px;
				background-image: radial-gradient(red,green,blue,red,blue);
				/bottom* border-radius: 50%; *//*圆角*/
			}
		</style>
	</head>
	<body> 
		<div id="d1"></div>
		<div id="d2"></div>
	</body>
</html>